package org.hbm.util;

public class OmAssert {

	public OmAssert() {
	}

	public static void assertThis(boolean flag) {
		if (!flag)
			throw new RuntimeException("程序校验不通过,请检查参数");
		else
			return;
	}

	public static void assertThis(boolean flag, String errorMsg) {
		if (!flag)
			throw new RuntimeException((new StringBuilder())
					.append("程序校验不通过,请检查参数,错误:").append(errorMsg).toString());
		else
			return;
	}
}
